Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong key name in unknown decoration option error #1375

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

muzimuzhi
Copy link
Member

Motivation for this change

Fixes #1082.

Previous PR #1083 tried to fix it but left a wrong key name in the error message, see analysis in #1083 (comment) and #1082 (comment).

I also changed it from pgfkeys error to tikz error.

Checklist

Please signoff your commits to explicitly state your agreement to the Developer Certificate of Origin. If that is not possible you may check the boxes below instead:

Comment on lines 22 to 24
{\tikzerror{Unknown decoration option '\pgfkeyscurrentname'.
I do not know the key '/pgf/decoration/\pgfkeyscurrentname'
and I am going to ignore it. Perhaps you misspelled it}}}%
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we somehow keep the /errors/unknown key handler?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using /error/unknown key handler, the full error message looks like

! Package pgfkeys Error: I do not know the key '/pgf/decoration/red' and 
I am going to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation.

which seems less helpful as user should really be led to the tikz doc, not pgfkeys doc.

But I confess current \tikzerror way is not good too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then maybe an additional error handler for decorations?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to save time and just switch back to /errors/unknown key.

@muzimuzhi muzimuzhi force-pushed the gh1082-unknown-decoration branch 2 times, most recently from 9248aaf to ab79a72 Compare December 5, 2024 15:59
@muzimuzhi muzimuzhi force-pushed the gh1082-unknown-decoration branch from ab79a72 to 46af807 Compare December 5, 2024 16:03
@muzimuzhi muzimuzhi requested a review from hmenke December 5, 2024 16:08
@muzimuzhi
Copy link
Member Author

Sigh, naming of per-issue tests (after 054f118) is still not so consistent.

(And sorry for the (force push) noise because I forgot to sign off.)

@muzimuzhi muzimuzhi merged commit 1193b3d into pgf-tikz:master Dec 5, 2024
3 checks passed
@muzimuzhi muzimuzhi deleted the gh1082-unknown-decoration branch December 5, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

\pgfkeyscurrentname shown in unknown key error messages
2 participants